home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / CMovieController 1.0 / CMovieController Folder / CMovieController.h < prev   
Text File  |  1994-04-21  |  2KB  |  66 lines

  1. /******************************************************************************
  2.  CMovieController.h
  3.  
  4.         
  5.     SUPERCLASS = CPane
  6.     
  7.     Copyright © 1994 Johns Hopkins University. All rights reserved.
  8.     
  9.  ******************************************************************************/
  10.  
  11. #pragma once
  12.  
  13. #include <Movies.h>
  14. #include <CPane.h>                    /* Interface for its superclass        */
  15.  
  16. class CMovieController : public CPane
  17. {
  18. public:
  19.                                 /** Data Members **/
  20.     Movie                itsMovie;
  21.     MovieController        itsController;
  22.     short                itsMovieRefNum;
  23.     Str255                itsMovieTitle;
  24.  
  25.                                 /** Methods **/
  26.     void                IMovieController(CView *anEnclosure, CBureaucrat *aSupervisor,
  27.                             short aWidth, short aHeight,
  28.                             short aHEncl, short aVEncl,
  29.                             SizingOption aHSizing, SizingOption aVSizing);
  30.     
  31.     virtual void        IViewTemp(CView *anEnclosure, CBureaucrat *aSupervisor, Ptr viewData);
  32.  
  33.     virtual void        OpenMovie(void);
  34.     virtual void        Dispose(void);
  35.     virtual void        ForgetMembers(void);
  36.  
  37.     virtual void        SetMovie(FSSpec *spec);
  38.     
  39.     virtual void        Activate(void);
  40.     virtual void        Deactivate(void);
  41.     virtual void        DoKeyDown(char theChar, Byte keyCode, EventRecord *macEvent);
  42.     virtual void        DoClick(Point hitPt,short modifierKeys,long when);
  43.     virtual void        Dawdle(long    *maxSleep);
  44.     virtual void        Draw(Rect *area);
  45.  
  46. protected:
  47.  
  48.     void                IMovieControllerX(void);
  49.     short                LocateMovie(FSSpec *spec);
  50.     OSErr                 NameFileSearch(StringPtr volName,
  51.                                short vRefNum,
  52.                                const Str255 fileName,
  53.                                FSSpecPtr matches,
  54.                                long reqMatchCount,
  55.                                long *actMatchCount,
  56.                                Boolean newSearch,
  57.                                Boolean partial);
  58. };
  59.  
  60. typedef struct tMovieControllerTemp
  61. {
  62.     PaneTemp    paneTemp;
  63.     Str255        movieTitle;
  64.     
  65. } tMovieControllerTemp, *tMovieControllerTempP;
  66.